package com.pet.article.feign;

import com.pet.model.behavior.pojos.ApBehaviorEntry;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestParam;

@FeignClient(name = "pet-behavior",path = "/api/behaviorEntry",contextId = "behaviorEntry")
public interface ApBehaviorEntryFeign {

    @RequestMapping("/findByUserIdOrEquipmentId")
    public ApBehaviorEntry findByUserIdOrEquipmentId(@RequestParam(value = "userId",required = false) Integer userId,
                                                     @RequestParam(value = "equipmentId",required = false) Integer equipmentId);
}
